<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/12
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>




<html>
<head>

    <link rel="stylesheet" href="../static/css/bootstrap.css">
    <link rel="stylesheet" href="../static/css/bootstrap-fileinput.css">
    <script src="../static/jquery/jquery-2.2.4.min.js"></script>
    <script src="../static/js/bootstrap.min.js"></script>
    <script src="../static/js/bootstrap-fileinput.js"></script>

    <title>Title</title>
    <style type="text/css">
        .namebox{
            width: 100%;
            white-space: nowrap;
            overflow: hidden;/*超出部分隐藏*/
            text-overflow: ellipsis;/*用...代替超出部分*/
            text-align: center;
        }
        a:focus{text-decoration: none}
    </style>
    <script>
        $(function() {
            $( "#pdate" ).datepicker();
        });
    </script>
</head>
<body>



<c:set var="root" value="${pageContext.request.contextPath}"/>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="/static/css/bootstrap.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="/static/jquery/jquery-2.2.4.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script	src="/static/js/bootstrap.min.js"></script>

<script type="text/javascript">
    $(document).ready(function(){
        /* var wd = $(".nav-pills").width();*/
        jQuery(window).scroll(function() {
            $("#top_cate").css("z-index", 9999);
        });

        $("#top_cate").affix({
            offset: {
                top: 25,
                bottom: function () {
                    return (this.bottom = $('.bottom').outerHeight(true));
                }
            }
        });
    });
</script>

<div class="container">
    <jsp:include page="/common/top.jsp"/>

</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-2 column">


            <jsp:include page="/common/left_list.jsp"/>


        </div>

        <div class="col-md-10 column">
            <div class="row">
                <h3 style="text-align: center">个人中心</h3>
            </div>
            <form class="form-horizontal" role="form" action="${root}/center" method="post">
                <div class="row">
                    <input type="hidden" name="uid" value="${u.uid}"/>
                    <div class="col-lg-6" style="padding: 20px">
                        <h3> </h3>
                        <div class="form-group">
                            <label for="username" class="col-sm-3 control-label">姓名</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="username" name="username" value="${u.username}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-3 control-label">密码</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="password" name="password" value="${u.password}"/>
                            </div>
                        </div>
                        <%--<div class="form-group">--%>
                            <%--<label for="birthday" class="col-sm-3 control-label">出生日期</label>--%>
                            <%--<div class="col-sm-8">--%>
                                <%--<input type="text" class="form-control" id="birthday" name="birthday" value="${u.birthday}"/>--%>
                            <%--</div>--%>
                        <%--</div>--%>
                        <div class="form-group">
                            <label for="sex" class="col-sm-3 control-label">性别</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="sex" name="sex" value="${u.sex}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="phone" class="col-sm-3 control-label">手机号码</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="phone" name="phone" value="${u.phone}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="address" class="col-sm-3 control-label">地址</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" id="address" name="address" value="${u.address}"/>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-6">
                        <div class="fileinput-new thumbnail" style="width: 300px;height: auto;max-height:150px;">
                            <img src="${root}/products/5/Koala.jpg">
                        </div>

                    </div>
                </div>
                <div class="row" style="margin: 20px auto">
                    <div class="form-group" style="text-align: center" >
                        <div class="col-sm-offset-5 col-sm-12" style="margin: 30px auto">
                            <input type="submit" class="btn btn-default btn-primary"/>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>



<jsp:include page="/common/bottom.jsp"/>


</body>
</html>
